IMPORTANT!** new OSDev series: https://www.youtube.com/watch?v=mpPbKEeWIHU&list=PLxN4E629pPnJxCQCLy7E0SQY_zuumOVyZ&index=1 Recommended watch in 1080p. Part 20 of a series on OS development. In this video we plan a dynamic memory allocation system. I'm using a malloc function which I designed for the purposed of the tutorial, but there are many similar malloc functions available online. I noticed that there is not many good Youtube tutorials on this subject, so I aim to change that (or atleast try). I highly advise you to know how to write at the very least C or C++ code before starting this tutorial. If you're an OS expert and you catch me doing something wrong, correct me! I want to share the most accurate information possible. If you're looking for written information on how to learn OS development, I highly recommend this paper: https://www.cs.bham.ac.uk/~exr/lectures/opsys/10_11/lectures/os-dev.pdf ➤Discord: https://discordapp.com/invite/p2JYhr9 As always, thanks for watching! If you wanna see more, subscribe! It's pretty easy, there's a button somewhere over there --- I'll do my best to upload regularly. You can help by sending me a specially made package in the mail saying "Get back to work you dummy". See ya later, gamers 0:00 Introduction 0:10 Pragma Once Warning Fix 0:23 Heap.cpp & Heap.h 1:09 MemorySegmentHeader 2:34 InitializeHeap(heapAddress, heapLength) 4:50 malloc(size) 5:08 Memory Alignment 6:00 malloc Loop 6:50 Fix an Issue 7:17 Returning a Free Memory Segment 8:09 Testing malloc 8:53 Test Success 9:20 Conclusion